module.exports = {
  show(duration = 1000, title = '正在加载') {
    wx.showToast({
      title: title,
      icon: 'loading',
      duration: duration
    })
  },
  close(delay = 500){
    setTimeout(() => {
      wx.hideToast()
    }, delay)
  }
}
